package com.execl.client.impl;

import com.execl.client.UserClientService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
public class UserClientServiceImpl {

    @Autowired
    private UserClientService userClientService;

    @RequestMapping(value = "/feignLogin", method = RequestMethod.POST)
    public String feignLogin(@RequestParam("username") String username) {
        return userClientService.findByName(username);
    }
}
